/* Stuffer File System header file */

#ifndef _STUFFER_H
#define _STUFFER_H

#define STUFFER_MAGIC       0x5700FFEA
#define STUFFER_VERSION     1

#define FILE_NAME_SIZE      16
#define BLOCK_SIZE          512

// Flags to be used in the "flags" field
#define SFS_FLAG_NOTHING    0
#define SFS_FLAG_EXECUTE    1
#define SFS_FLAG_WRITE      2
#define SFS_FLAG_READ       4
#define SFS_FLAG_MAIN       8

struct stuffer_header_t {
  int magic;
  int version;
  int num_files;
  int total_size;  
};

struct stuffer_entry_t {
  int index;  
  int offset;
  int size;
  int flags;
  char name[FILE_NAME_SIZE];
};

#endif /* _STUFFER_H */
